package sctu.edu.java.year2016.team05.xiongyihui.day20160524.chapter7_2;

/**
 * Created by Lenovo on 2016/5/30.
 */
public class Area1 {
    private double length;
    private double wide;
    public Area1(double length, double wide){
        this.length =length;
        this.wide =wide;
    }
    public double getLRNGTH(){
        return length;}
    public void setLRNGTH(double length){
        this.length=length;
    }

    public double getWIDE(){
        return wide;
    }
    public void setWIDE(){
        this.wide=wide;
    }

    public double area(){
        return length*wide;
    }

    public static void main(){
        Area1 m= new Area1(34,56);
        System.out.println(m.area());
    }
}
